<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/7/1 0001
 * Time: 下午 1:52
 */

namespace app\sports_admin\vaildate;


class AppExplain extends Base
{
    protected $rule = [
        'id'=>'require|isPositiveInteger',
    ];

    protected $message = [
        'id'=>'编号必须为整数',
    ];
    //添加
    public function insert()
    {
        $rule = [
            'title'=>'require',
            'content'=>'require',
        ];
        $msg = [
            'title'=>'标题不能为空',
            'content'=>'内容不能为空',
        ];
        self::goCheck($rule,$msg);
    }
}